<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 
            max-width 最大可见区域宽度  
            min-width 最小可见区域宽度  
        */
        /* @media (max-width: 600px) {
            p {
            font-size: 30px;
            border: solid;
            }
        } */
        /* @media (min-width: 600px) {
            p {
            font-size: 30px;
            border: solid;
            }
        } */

        /* 
            orientation: portrait 设置手机纵屏时的样式
        */
        @media (orientation: portrait) {
            p {
                background-color: antiquewhite;
                font-size: 30px;
            }
        }
        /* 
            orientation: landscape 设置手机横屏时的样式
        */
        @media (orientation: landscape) {
            p {
                background-color: brown;
                font-size: 30px;
            }
        }
    </style>
</head>
<body>
    <p>hello</p>
</body>
</html>